-
Notifications
You must be signed in to change notification settings - Fork 42
[#786] Handle denied state of a plan request (no conversion hosts configured) #798
Conversation
24d8fec
to
cb06944
Compare
cb06944
to
51be7f6
Compare
51be7f6
to
db8647b
Compare
This will also fix #739. |
const cardEmptyState = ( | ||
<EmptyState> | ||
<EmptyState.Icon type="pf" name="error-circle-o" /> | ||
<EmptyState.Info style={{ marginTop: 10 }}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar blocks of code found in 2 locations. Consider refactoring.
iconType="pf" | ||
iconName="error-circle-o" | ||
description={ | ||
<React.Fragment> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar blocks of code found in 2 locations. Consider refactoring.
b66405e
to
70bd78b
Compare
Checked commits mturley/manageiq-v2v@e79794a~...7b6d4ea with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
return ( | ||
(mostRecentRequest.request_state === 'finished' && mostRecentRequest.approval_state !== 'denied') || | ||
mostRecentRequest.request_state === 'failed' || | ||
(mostRecentRequest.approval_state === 'denied' && mostRecentRequest.options.denial_acknowledged) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Methinks we can remove the approval_state === 'denied'
check here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is really great work
@simaishi Could this be cherry-picked into hammer please? Thank you. |
[#786] Handle denied state of a plan request (no conversion hosts configured) (cherry picked from commit e8e89d1) https://bugzilla.redhat.com/show_bug.cgi?id=1640816
Hammer backport details:
|
Fixes #786.
Fixes #739.
https://bugzilla.redhat.com/show_bug.cgi?id=1640816
denied
test-denied-state
conditionDOCS_URL_CONFIGURE_CONVERSION_HOSTS
URL, which is now a 404Screens
A denied plan in the Plans In Progress view:
A denied plan in the Plans Complete view:
A denied plan in the Plan Request Details view:
Recording